package com.yfk.service.staff;

import com.yfk.base.response.ApiDataResponse;
import com.yfk.service.BaseOpenApi;
import com.yfk.service.OpenApiURL;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @description: 用友开放平台员工接口
 **/
@Component
public class StaffApi extends BaseOpenApi {

    public Map<String, Object> list(Map<String, Object> params) {
        ApiDataResponse apiDataResponse =  postForEntity(OpenApiURL.STAFF_LIST,params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }

    public Map<String, Object> queryFile(String url,Map<String,String> params) {
        ApiDataResponse apiDataResponse =  getUrlForEntity(url,params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }

}
